package cn.yfj.org.domain;

import cn.yfj.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data//编译时自动生成get，set
public class Department extends BaseDomain {
    //部门编号
    private String sn;
    private String name;
    //部门上级
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    //自关联
    private Department department;
    //关联员工表1
    private Employee employee;
    private Department parent;
    //当前部门对应的儿子   能做到无限极
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Department> children = new ArrayList<>();

}
